package course.com.itheima4;

public interface Inter {
    void show(String str);
}

class Demo{
    public static void main(String[] args) {
        test(new Inter() {
            @Override
            public void show(String str) {
                System.out.println(str);
            }
        });

        test((String str)->{
            System.out.println(str);
        });

    }

    public static void test(Inter inter){
        inter.show("test");
    }
}